import Vue from 'vue'
import VueRouter from 'vue-router'
import News from '../views/News.vue'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect:'/news',
    name: 'News',
    component: News
  },
  {
    path: '/video',
    name: 'Video',
  
    component: () => import('../views/Video.vue')
  },
  {
    path: '/me',
    name: 'Me',
   
    component: () => import( '../views/Me.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
